package com.bs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bs.bean.Comment;
import com.bs.bean.Detail;
import com.bs.bean.Instrument;
import com.bs.mapper.DetailMapper;
import com.bs.service.DetailService;

@Service
//业务层
public class DetailServiceImpl implements DetailService {
	@Autowired
	DetailMapper detailDao;

	@Override
	public Detail findById(Integer id) {
		// TODO Auto-generated method stub
		return detailDao.selectByPrimaryKey(id);
	}

	@Override
	public int insert(Detail detail) {
		// TODO Auto-generated method stub
		return detailDao.insertSelective(detail);
	}



}
